//
//  ZPZNetRequest+MetalsOtherInfo.m
//  项目二网络请求
//
//  Created by 张峥 on 16/7/23.
//  Copyright © 2016年 张峥. All rights reserved.
//

#import "ZPZNetRequest+MetalsOtherInfo.h"

@implementation ZPZNetRequest (MetalsOtherInfo)

+ (void)getMetalsOtherInfoComletion:(ZLReqComletion)comletion{
    [self sendRequestByParameters:nil Method:@"appFinancial/getMetalsOtherInfo" requestType:ZLApRequestPost Comletion:comletion];
}


+(void)getMealsListtPageNum:(NSString *)pageNum
                   pageSize:(NSString *)pageSize
                     typeId:(NSString *)typeId
                      ageId:(NSString *)ageId
                  purposeId:(NSString *)purposeId
                 supplierId:(NSString *)supplierId
                     userId:(NSString *)userId
                  comletion:(ZLReqComletion )comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    
    if (![LStringUtils isTextEmpty:pageNum]) {
        [numDic setObject:pageNum forKey:@"pageNum"];
    }
    if (![LStringUtils isTextEmpty:pageSize]) {
        [numDic setObject:pageSize forKey:@"pageSize"];
    }
    if (![LStringUtils isTextEmpty:typeId]) {
        [numDic setObject:typeId forKey:@"typeId"];
    }
    if (![LStringUtils isTextEmpty:ageId]) {
        [numDic setObject:ageId forKey:@"ageId"];
    }
    if (![LStringUtils isTextEmpty:purposeId]) {
        [numDic setObject:purposeId forKey:@"purposeId"];
    }
    if (![LStringUtils isTextEmpty:supplierId]) {
        [numDic setObject:supplierId forKey:@"supplierId"];
    }
    if (![LStringUtils isTextEmpty:userId]) {
        [numDic setObject:userId forKey:@"userId"];
    }
    
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appFinancial/getMetalsList" requestType:ZLApRequestPost Comletion:comletion];
}

+(void)getMetalsDetailid:(NSString *)Id
               comletion:(ZLReqComletion )comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    
    if (![LStringUtils isTextEmpty:Id]) {
        [numDic setObject:Id forKey:@"id"];
    }
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appFinancial/getMetalsDetail" requestType:ZLApRequestPost Comletion:comletion];
}


@end
